<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="sys" uri="/sys-tag"%>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>绑定书籍</title>
</head>
<lui:context />
<u:View basePath="/res-datum/blog" userJS="switchBlogBook"
	userCSS="switchBlogBook" delayLoadJs="false">
	<body>
		<lui:dialogBody>
			<form id="bindBookFrm" class="m-cust">
				<lui:ajax url="${ctx }/book/blogBindBook" type="post" contentType="application/x-www-form-urlencoded"
					id="bindBookAjax" formQuery="#bindBookFrm" formSubmit="true"
					onSuccess="SwitchBlogBook.bindBookSucc" />
				<input name="from" value="${requestScope.from }" hidden="hidden">
				<input name="blogId" value="${requestScope.blogId}" hidden="hidden">
				<div class="form-horizontal">
					<div class="form-group m-narrow row">
						<div class="col-xs-12">
							<div class="col-xs-3">
								<label class="m-label" for="bookId">书籍名称：</label>
							</div>
							<div class="col-xs-7">
								<lui:ajax url="${ctx }/book/find/all" id="findAllBookAjax"
									autoSend="true" async="false" respDataKey="books" />
								<lui:dropList id="bookId" name="bookId" textDefine="bookName"
									valueDefine="bookId" className="form-control m-input"
									showSelectAll="true" dropValues="books" showSelectName="请选择" />
							</div>
						</div>
					</div>
				</div>
			</form>
		</lui:dialogBody>
		<lui:dialogFooter>
			<button class="btn btn-primary m-btn" type="button" onclick="SwitchBlogBook.bindBook()">确定</button>
			<button class="btn btn-default m-btn" type="button" data-dismiss="dialog-box" id="close">关闭</button>
		</lui:dialogFooter>
	</body>
</u:View>